import { createApp } from "vue";
import App from "./App.vue";
import router from "@/router";
import { setupStore } from "@/store";
import { setupDirective } from "@/directive";
import "@/permission";
// 本地SVG图标
import "virtual:svg-icons-register";
// 样式
import 'element-plus/theme-chalk/dark/css-vars.css';
import "@/styles/index.scss";
import "uno.css";
import "normalize.css";

console.log(import.meta.env.VITE_ENV, "环境");

const app = createApp(App);
// 全局注册 自定义指令(directive)
setupDirective(app);
// 全局注册 状态管理(store)
setupStore(app);

app.use(router).mount("#app");
